# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pybase64
_pkgname=pybase64
pkgver=1.4.1
pkgrel=1
pkgdesc='Fast Base64 encoding/decoding.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/pybase64/#files'
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('939bc6713a8108952af461db2779adcafbf50f61ade328c77534d9b72d4236484a7b51a5ed4c5f804d3cb9ff4e320ae6e96517251c8a24c9fc1f4831e44f88c7')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

